package CircleAndCylinder;
import CircleAndCylinder.Circle;
import CircleAndCylinder.Cylinder;

import java.lang.module.FindException;

public class CylinderTest {

    public static void main(String[] args) {
        Cylinder cylinder = new Cylinder();
        cylinder.setR(5);

        double s = cylinder.FindArea();
        System.out.println("圆柱的体积:" + s);
        Circle circle = new Circle();
        circle.setR(3);

        System.out.println("圆的面积:" + circle.FindArea());
    }

}
